package com.mmx.mapper;

import com.mmx.domain.entity.FlowVariables;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc: 流程变量Mapper
 * @author: liushuai
 * @date: 2023/2/7 16:58
 */
@Mapper
public interface FlowVariablesMapper {

    /**
     * 批量新增流程变量
     * @param flowVariables
     * @return: int
     * @Author: liushuai
     * @Date: 2023/3/19 20:49
     */
    int insertFlowVariablesBatch(List<FlowVariables> flowVariables);


    /**
     * 根据分支id和实例id查询流程变量
     * @param instanceId
     * @param batchId
     * @return: java.util.List<com.mmx.domain.entity.FlowVariables>
     * @Author: liushuai
     * @Date: 2023/3/24 22:36
     */
    List<FlowVariables> selectVariablesByInstanceIdAndBatchId(@Param("instanceId") String instanceId,@Param("batchId") String batchId);
}
